<?php
/**
* 默认首页
*/
class indexController extends Controller
{
	
	function __construct()
	{
		//echo "this is index class";
		parent::__construct();

	}
	public function index(){
		//echo "this is index function";
		//$g = $_GET[g];
		//echo $g;
	}
	public function new_model(){
		$M = parent::load_model('index');
		$res = $M->query('select * from `index`');
		$res2 = $M->fields('name')->select();
        print_r($res);
		print_r($res2);
		// var_dump($res);
//		 var_dump($M);
	}
	public function test_tmp(){
		$t = parent::assign('test','12312');
		parent::display('index','index.tpl');

	}
}
?>